import React from "react";

// import './index.css';

function HelloWorldFn(){
    function handleClick(){
        alert("Hello World!");
    }

    return (
        <div style={{color:'red'}}>
            <h1 onClick={handleClick}>Hello World</h1>
        </div>
    )
}

export default HelloWorldFn;